import { createRouter, createWebHashHistory } from 'vue-router'
import Loading from '@/views/Loading.vue'
import Index from '@/views/Index.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'loading',
      component: Loading
    },
    {
      path: '/index',
      name: 'index',
      component: Index
    },
    {
      path: '/sign',
      component: () => import('@/views/Sign.vue')
    },
    {
      path: '/:catchAll(.*)',
      component: () => import('@/views/NotFound.vue')
    }
  ]
})

export default router
